package com.atguigu.day211103.work.test02.bean;

public class Circle {
   private double r;

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public Circle(double r) {
        this.r = r;
    }

    public Circle() {
    }
    public double showArea(){
        return 3.14*r*r;
    }
    public double showPerimeter(){
        return  2*3.14*r;
    }
}
